import request from '@/utils/request'

export function getCustomerList(query) {
    return request({
    url: '/customer/list',
    method: 'get',
    params: query
  })
}

export function getCustomer(id) {
  return request({
    url: '/customer/' + id,
    method: 'get'
  })
}

export function createCustomer(data) {
  return request({
    url: '/customer',
    method: 'post',
    data: data
  })
}